from api import config, AutoSerReboot
import toml

from logger import logger

# 测试网关在不同温度环境下重启的稳定性(主动下发reboot指令) -- 串口连接
# @AUTHOR -- 陈选 -- 2024-04-18
# api层serReboot
def AutoSerRebootMain():
    config.Config.arg = toml.load('config.toml')
    logger.Config.arg = config.Config.arg
    logger.add_handle()
    server = AutoSerReboot.testConnect()
    server.start()


if __name__ == '__main__':
    AutoSerRebootMain()
